package io.easyspring.invitation.core.properties;

/**
 * redis 存储邀请信息的 key 的模板常量
 *
 * @author summer
 * @version 2.0.0-RELEASE
 * DateTime 2019-06-22 13:26
 */
public interface InvitationRedisKeyConstant {

    /**
     * 邀请信息的 key 的模板
     * 结构解释: easy:spring:invitation:inviter_id:verification_code:{inviterId}:{verificationCode}
     */
    String INVITATION_KEY_TEMPLATE = "easy:spring:invitation:inviter_id:verification_code:%s:%s";

    /**
     * 邀请信息邀请者前缀的 key 的模板
     * 结构解释: easy:spring:invitation:inviter_id:verification_code:{inviterId}:*
     */
    String INVITATION_INVITER_KEY_TEMPLATE = "easy:spring:invitation:inviter_id:verification_code:%s:*";
}
